package com.jqyd.mod.orm;

import java.io.Serializable;
import java.util.UUID;


public class SimpleORMBean implements AutoVersionControl, Serializable{
	/**
	 * 
	 */
	@DBColumn(mapping=false)
	private static final long serialVersionUID = -7511967894738463820L;
	@DBColumn(primaryId=true)
	private String recid;
	@DBColumn(date=true)
	private long createDate;
	private long autoVersion;
	@Override
	public String getVersionWord() {
		return "autoVersion";
	}
	public String getRecid() {
		return recid;
	}
	public void setRecid(String recid) {
		this.recid = recid;
	}
	public void setRecid() {
		this.recid = UUID.randomUUID().toString();
	}
	public long getCreateDate() {
		return createDate;
	}
	public void setCreateDate(long createDate) {
		this.createDate = createDate;
	}
	public void setCreateDate(){
		this.createDate = System.currentTimeMillis();
	}
	public long getAutoVersion() {
		return autoVersion;
	}
//	public void setAutoVersion(long autoVersion) {
//		this.autoVersion = autoVersion;
//	}
}
